import App from './App'
const lbtpriview = (index, arr) => {//预览图片
	var i = arr; //获取当前页面的轮播图数据
	//uniapp预览轮播图
	uni.previewImage({
		current: index, //预览图片的下标
		urls: i //预览图片的地址，必须要数组形式，如果不是数组形式就转换成数组形式就可以
	})
}
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from "uview-ui";
import store from './store'
import upFile from "@/utils/upload.js"
import utils from './utils/utils'
Vue.prototype.upFile=upFile
Vue.use(uView);
Vue.use(utils);
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.lbtpriview = lbtpriview
import handle from './common/factory.js'
// 挂载全局函数
Vue.prototype.$unit = handle;
// 检测网络状态变换
handle.netWorkChange();
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif